﻿using System.Data.Entity.ModelConfiguration;
using MiniProfilerWebApplication1.Biz.Models;

namespace MiniProfilerWebApplication1.Biz.Maps
{
    public class UserMap : EntityTypeConfiguration<User>
    {
        public UserMap()
        {
            this.ToTable("TUser");
            this.HasKey(p => p.Id);
            this.Ignore(p => p.StaffName);
            this.Property(p => p.Password).HasColumnName("UserPassword");
        }
    }
}
